<template>
    <div>
    <el-date-picker
      class="abc"
      ref="a"
      v-model="value2"
      align="right"
      type="date"
      placeholder="选择日期"
      :picker-options="pickerOptions">
    </el-date-picker>
    <button @click="okbtn">ok</button>
    </div>
</template>
<script>
export default {
    data(){
        return {
              value2: 441211545455

        }
        
    },
    methods:{
        okbtn(){
              console.dir(this.$refs.a);
              document.querySelector('.abc').querySelector('input').focus()
        }
    }
    
}
</script>
<style lang="less" scoped>

</style>